import { createI18n } from 'vue-i18n'
import zhCN from './zhCN'
import en from './en'

const i18n = createI18n({
    legacy:false,
	locale: localStorage.getItem('locale')||'zh-CN',
	messages: {
		'zh-CN':zhCN,
		'en-US':en,
	}
});

export default i18n;